using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.EntidadesArtes
{
	/// <summary>
	/// A custom serializable dataset containing 
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]


	/// <summary>Class for handling datasets</summary>  
		public class TipoFormacionArtisticaImparteData : DataSet
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_TIPO_FORMACION_ARTISTICA_IMPARTE_TABLE = "ART_TIPO_FORMACION_ARTISTICA_IMPARTE";

		public const string FRM_ID_FIELD = "FRM_ID";
		public const string FRM_FROMACION_IMPARTE_FIELD = "FRM_FROMACION_IMPARTE";


		protected TipoFormacionArtisticaImparteData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		public TipoFormacionArtisticaImparteData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: Localidades
		/// </summary>
		private void BuildDataTables()
		{
			DataTable table;
			DataColumnCollection columns;
			table = new DataTable(ART_TIPO_FORMACION_ARTISTICA_IMPARTE_TABLE);
			columns = table.Columns;

			columns.Add(FRM_ID_FIELD, typeof (Decimal));

			columns.Add(FRM_FROMACION_IMPARTE_FIELD, typeof (String));
			columns[FRM_FROMACION_IMPARTE_FIELD].Caption = "Nombre";

			this.Tables.Add(table);
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row
		public void addTipoFormacionArtisticaImparte(DataRow row)
		{
			this.Tables[ART_TIPO_FORMACION_ARTISTICA_IMPARTE_TABLE].Rows.Add(row);
		}

	}

}